package com.logic.landseaserver.persistence.write;

import com.logic.landseaserver.domain.ChangeRoomRecord;

public interface ChangeRoomRecordWriteMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ChangeRoomRecord record);

    int insertSelective(ChangeRoomRecord record);

    int updateByPrimaryKeySelective(ChangeRoomRecord record);

    int updateByPrimaryKey(ChangeRoomRecord record);
    
    /**
     * 
     * [简要描述]：软删除</br>
     * [详细描述]：</br>
     * [作者]：Aaron(2017-12-13)</br>
     *
     * @param record
     * @return
     *
     */
    int deleteByUserAndConract(ChangeRoomRecord record);
    
    /**
     * 
     * [简要描述]：根据用户+A合同ID更新状态</br>
     * [详细描述]：更新的状态取决于传值</br>
     * [作者]：Aaron(2017-12-18)</br>
     *
     * @param record
     * @return
     *
     */
    int updateStatusByUserAndContract(ChangeRoomRecord record);
}